<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectForm',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '自定义表单',
          displayKey: 'name',
          returnKeys: ['id', 'id'],
          listUrl: '/base/bpm/form/listDialog',
          queryParamCode: 'name',
          queryParamText: '表单名称',
          columns: [
            { title: '表单名称', dataIndex: 'name', align: 'center', width: '50%',widthRight: '70%' },
            { title: '对应表', dataIndex: 'tableName', align: 'center', width: '50%' },
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>